package com.mrjoew.weekend.services.shop;

import com.mrjoew.weekend.entities.vo.shop.CarVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * 购物车 Service
 */
public interface CarService {

    /**
     * 分布列表
     *
     * @param pageable
     * @param id
     * @return
     */
    public Page<CarVO> list(Pageable pageable, String id);

    /**
     * 删除购物车
     *
     * @param goodsId
     * @return
     */
    public void del(Integer goodsId, String id);

    /**
     * 放置购物车
     *
     * @param goodsId
     * @param number
     * @param id
     * @return
     */
    public void put(Integer goodsId, Integer number, String id);
}
